Do not show @timestamp in logs in UI - #70790
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
|
54b927c to
b50a1b0
Compare
potiuk
left a comment
There was a problem hiding this comment.
Good catch, and precisely diagnosed. The old filter kept @timestamp in the output set and only removed it via .pop() when timestamp was absent — so whenever a hit carried both, which is the normal case once a shipper adds @timestamp alongside the timestamp the supervisor already wrote, the pop never ran and the field leaked into the UI.
Reading it from hit_dict as a fallback source instead of filtering it in is the right shape, and the @timestamp-only path still maps correctly since TASK_LOG_FIELDS contains timestamp. Fixing both providers symmetrically with the same both-present regression test in each is exactly right.
I pushed the docstring fix myself so this didn't need another round-trip from you — the OpenSearch handler's docstring had picked up "ES" from the elasticsearch copy.
Drafted-by: Claude Code (Opus 5); reviewed by @potiuk before posting
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
When:
after a task is already finished an additional

@timestampfield is displayed in web UI which duplicates information in the main timestamp (at the beginning of line):The patch is not including the

@timestampfield itself but still performs mapping it intotimestampfield is the latter is not present. With the proposed patch there is no duplicated information on timestamp, the log looks cleaner:Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.